home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 23 code / Documentary Synchronicity ƒ / Interface ƒ / Support ƒ / EvenMoreFiles.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-10  |  1.3 KB  |  41 lines  |  [TEXT/KAHL]

  1. #ifndef __EVENMOREFILES__
  2. #define __EVENMOREFILES__
  3.  
  4. #ifndef __FILES__
  5. #include <Files.h>
  6. #endif
  7.  
  8. enum {
  9.     GenericFloppy,
  10.     GenericServer,
  11.     GenericCDRom,
  12.     GenericHD,
  13.     GenericRAMDisk,
  14.     IomegaBernoulliDisk
  15. };
  16.  
  17. enum {
  18.     online,
  19.     offline,
  20.     ejected,
  21.     invalid
  22. };
  23.  
  24. pascal OSErr GetFileSpec(short anFRefNum, FSSpec *aFileSpec);
  25. pascal OSErr GetVolumeModDate(short aVRefNum, unsigned long *aDate);
  26. pascal OSErr GetNameOfReferencedFile(short anFRefNum, Str255 aName);
  27. pascal OSErr GetFileParID(short aRefNum, long *aParID);
  28. pascal OSErr GetFolderParID(short aVRefNum, long aDirID, long *aParent);
  29. pascal OSErr GetFolderName(short aVRefNum, long aDirID, Str255 aName);
  30. pascal OSErr GetVolumeName(short aVRefNum, Str255 aName);
  31. pascal OSErr GetFilesVolume(short anFRefNum, short *aVRefNum);
  32. pascal OSErr CanAccess(short aVRefNum, long aDirID, Boolean *canAccess);
  33. pascal OSErr FileInTrashCan(short aFRefNum, Boolean *inTrash);
  34. pascal short GetFilesVolumeType(short aRefNum);
  35. pascal OSErr GetFilesVolumeStatus(short aRefNum, short *aStatus);
  36. pascal OSErr GetFreeBytesOnVolume(short aVRefNum, unsigned long *aFreeBytes);
  37. pascal void FSGetFolderSize(FSSpecPtr aFolder, unsigned long *aFolderSize);
  38. pascal OSErr GetDirectorySize(long aVRefNum, short aDirID, unsigned long *aDirectorySize);
  39. pascal OSErr GetTrashFolder(short aVRefNum, FSSpecPtr aTrash);
  40.  
  41. #endif